# coding:utf-8
from marshmallow import fields

from ..extensions import ma


class IpInSchema(ma.Schema):
    """
    created by chenhj at 2017/8/11
    ip序列化schema
    """
    ip = fields.Str()

ip_in_schema = IpInSchema()


class EventStatSchema(ma.Schema):
    """
    created by chenhj at 2017/8/23

    """
    event = fields.Str(required=True, error_messages={
        'required': '事件不合法'
    })

event_stat_schema = EventStatSchema()
